package com.tcat.item.pojo;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

@ApiModel(description = "参数")
@Table(name="tb_spec_param")
@Data
public class SpecParam {
    @Id
    @KeySql(useGeneratedKeys=true)
    private Long id;
    private Long cid;
    @Column(name="group_id")
    private Long groupId;
    private String name;
   //numeric在mysql中属于关键字

   @Column(name = "`numeric`")
    private Boolean numeric;
    private String unit;
    private Boolean generic;
    private Boolean searching;
    private String segments;

}
